[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 MONEY   Type

 Function
  Declare one or more variables of type money.

 Syntax
  MONEY var|arr(s[,s[,s]])[,var|arr(s[,s[,s]])]

  var  - The name of a variable to declare.  Must start with a letter
         [A-Z] which may be followed by letters, digits [0-9] or the
         underscore [_].  May be of any length but only the first 32
         characters are used.
  arr  - The name of an array variable to declare.  The same naming
         conventions as var are used.
  s    - The size (0-based) of an array variable dimension.  Any
         constant integer expression is allowed.

 Remarks
  MONEY variables are stored as positive or negative cents.  The range of
  MONEY is $-21,474,836.48 through $+21,474,836.47.  It is stored internally
  as a four byte signed long integer.  If MONEY is assigned to or from an
  INTEGER type then the cents (-2,147,483,648 - +2,147,483,647) are assigned.
  If MONEY is assigned to a STRING type then it is automatically
  converted to the following format:  "$sD.CC", where s is the sign (- for
  negative amounts, nothing for positive amounts), D is the dollar amount
  (one or more digits as needed) and CC is the cents amount (00-99).  If a
  STRING is assigned to MONEY then PPL will do it's best to convert the
  string back to the appropriate amount of money.  All other types, when
  assigned to or from MONEY, will be converted to an INTEGER first before
  being assigned to or from the MONEY type.

 Examples
  MONEY itemAmt, subTot, total, priceList(2,17)

See Also: BOOLEAN DATE INTEGER STRING TIME
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson